package trace

const (
	traceparentHeader = "traceparent"
)

type TraceContext map[string]string

func (tc TraceContext) Get(key string) string {
	return tc[key]
}

func (tc TraceContext) Set(key string, value string) {
	tc[key] = value
}

func (tc TraceContext) Keys() []string {
	keys := make([]string, 0, len(tc))
	for k := range tc {
		keys = append(keys, k)
	}

	return keys
}
